import { request } from "../easeserve";

// 获取时间戳
function getTime() {
  let timestamp = new Date().getTime();
  return timestamp;
}
/**
 * 歌单方法 playlist
 */

// 获取用户歌单
export const getUserPlayList = (uid) => {
  return request({
    url: `user/playlist?uid=${uid}&timestamp=${getTime()}`,
    method: 'get',
  })
}
// 获取歌单详情
export const getPlayListDetail = (id) => {
  return request({
    url: `/playlist/detail?id=${id}&timestamp=${getTime()}`,
    method: 'get',
  })
}
// 获取歌单所有歌曲
export const getPlayListTrackAll = (id) => {
  return request({
    url: `/playlist/track/all?id=${id}&timestamp=${getTime()}`,
    method: 'get',
  })
}
